package com.zhekou.web.ext;

/**
 * User: chjp
 * Date: 12-10-9
 * Time: 下午5:35
 */
public class ApiException extends Exception{
    private int code;
    private String reason;

    public ApiException(int code, String reason) {
        super(reason);
        this.code = code;
        this.reason = reason;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
